package com.cly.entity;

import com.cly.base.entity.BaseEntity;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;

import java.io.Serial;

/**
 * 资讯表
 *
 * @author by 春风能解释
 * <p>
 * 2025-3-7
 */
@EqualsAndHashCode(callSuper = true)
@Data
@Accessors(chain = true)
@NoArgsConstructor
@Schema(name = "资讯表", description = "资讯表")
public class Document extends BaseEntity {
    /**
     * 序列化ID
     */
    @Serial
    private static final long serialVersionUID = -5871290840901649601L;
    /**
     * 主题
     */
    @Schema(description = "主题")
    private String title;
    /**
     * 作者
     */
    @Schema(description = "作者")
    private Long author;
    /**
     * 正文
     */
    @Schema(description = "正文")
    private String content;
    /**
     * 点赞量
     */
    @Schema(description = "点赞量")
    private Long like;
    /**
     * 违规原因
     */
    @Schema(description = "违规原因")
    private Long violationId;
    /**
     * 审核人
     */
    @Schema(description = "审核人")
    private Long auditUser;
    /**
     * 状态(0草稿,1审核中,2发布,3审核不通过)
     */
    @Schema(description = "状态(0草稿,1审核中,2发布,3审核不通过)")
    private Integer status;
}
